var locationCfg = {
    remote: 'http://localhost:3945/',
    remoteLocation: function(location) {
        return this.remote + location;
    }
};